home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 2000 February
/
Macworld (2000-02).dmg
/
Shareware World
/
Comms & Internet
/
Flex-Able 1.0
/
Flex-Able Templates Folder
/
mail_template.able
< prev
next >
Wrap
Text File
|
1999-08-29
|
1KB
|
48 lines
<!--
This template is built to read in the contents of an HTML form with the fields
to_name
to_email
from_name
from_email
subject
body
and process them into an email message fit to be sent via MailAgent.
-->
<HTML><HEAD><TITLE></TITLE></HEAD>
<BODY>
<!-- read the contents of the form into Flex-Able and call it "MailData" -->
<:set MailData <:form_read>>
<!-- require specific fields to be filled out -->
<:require MailData["to_email"] MailData["from_email"]>
<!-- build the message -->
<:mail>
To: <:echo MailData["to_name"] "<"MailData["to_email"]">"
From: <:echo MailData["from_name"] "<"MailData["from_email"]">"
Subject: <:echo MailData["subject"]>
<:echo MailData["body"]>
<:/mail>
RESPONSE HTML
</body></html>
<!-- if the required fields have not been filled out -->
<:else>
<h2>You neglected to fill out the following required fields</h2>
<ul>
<li><:ifempty form["from_email"]>Sender's email address
<:/ifempty>
<li><:ifempty form["to_email"]>Recipient's email address
<:else>But you entered the recipient's email, which is nice
<:/ifempty>
<li><:ifempty form["body"]>The body of the message
<:/ifempty>
</ul>
</body></html>
<:/require>